package org.practice.validate;

public class LogsBean {
	@Length(min=2,max=20,message="长度大于2小于20!")
	@NotNull(message="不能为空！")
	private String info;
	
	@Length(min=2,max=20,message="长度大于2小于20!")
	@NotNull(message="不能为空！")
	private String debug;
	
	public LogsBean(String message){
		this.info=message;
	}
	
	public LogsBean(){
		this.info="无参构造方法";
	}
	
	public void rule(){
		System.out.println("=====print:====="+this.info);
	}
	public void info(String info){
		System.out.println("=====info:====="+info);
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getDebug() {
		return debug;
	}

	public void setDebug(String debug) {
		this.debug = debug;
	}
	
}
